/**
 * 
 */
package com.shine.icis.dto;

import java.util.List;


/**
 * 监控平台信息
 * @author zsy
 *
 */
public class MonitorConsole {
	private	long startLogID;//开始统计的LOGID
	private String serverStatus;//运行服务器状态
	private List<MonitorInfo> monitorInfos;//监控记录信息
	private int chekStatus;//-1等待；0运行中；1结束
	private String checkInfo;//数据核查信息
	
	public long getStartLogID() {
		return startLogID;
	}
	public void setStartLogID(long startLogID) {
		this.startLogID = startLogID;
	}
	public String getServerStatus() {
		return serverStatus;
	}
	public void setServerStatus(String serverStatus) {
		this.serverStatus = serverStatus;
	}
	public List<MonitorInfo> getMonitorInfos() {
		return monitorInfos;
	}
	public void setMonitorInfos(List<MonitorInfo> monitorInfos) {
		this.monitorInfos = monitorInfos;
	}
	
	public int getChekStatus() {
		return chekStatus;
	}
	public void setChekStatus(int chekStatus) {
		this.chekStatus = chekStatus;
	}
	public String getCheckInfo() {
		return checkInfo;
	}
	public void setCheckInfo(String checkInfo) {
		this.checkInfo = checkInfo;
	}
	
	/**
	 * 第个系统过程记录
	 * @author zsy
	 */
	public class MonitorInfo {
		private String systemName;//系统名称
		private String systemCode;//系统编号
		private MonitorItem extractItem;//抽取
		private MonitorItem transformItem;//转换
		private MonitorItem loadItem;//加载
		

		public String getSystemName() {
			return systemName;
		}

		public void setSystemName(String systemName) {
			this.systemName = systemName;
		}

		public String getSystemCode() {
			return systemCode;
		}

		public void setSystemCode(String systemCode) {
			this.systemCode = systemCode;
		}

		public MonitorItem getExtractItem() {
			return extractItem;
		}

		public void setExtractItem(MonitorItem extractItem) {
			this.extractItem = extractItem;
		}

		public MonitorItem getTransformItem() {
			return transformItem;
		}

		public void setTransformItem(MonitorItem transformItem) {
			this.transformItem = transformItem;
		}

		public MonitorItem getLoadItem() {
			return loadItem;
		}

		public void setLoadItem(MonitorItem loadItem) {
			this.loadItem = loadItem;
		}
	}
	
	/**
	 * 每一块的监控信息
	 * @author zsy
	 *
	 */
	public class MonitorItem {	
		public static final char STATUS_NORUN = '3';//未开始
		public static final char STATUS_RUNNING = '2';//进行中
		public static final char STATUS_SUCCESS = '1';//成功
		public static final char STATUS_FAILURE = '0';//失败

//		private char runResult;
		private char runStatus;
		private String alarmInfo;//告警信息
		public char getRunStatus() {
			return runStatus;
		}
		public void setRunStatus(char runStatus) {
			this.runStatus = runStatus;
		}
		public String getAlarmInfo() {
			return alarmInfo;
		}
		public void setAlarmInfo(String alarmInfo) {
			this.alarmInfo = alarmInfo;
		}
		
	}
}
